home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / batchut / batutl2.zip / CR.DOC < prev    next >
Text File  |  1985-02-24  |  1KB  |  31 lines

  1.  CR.COM - pushes <return> into keyboard buffer via faked <ret> sequence
  2.  
  3.  Useful for putting default responses to programs run in .BAT file
  4.  processing. This version will work on any version of DOS (1.1 and 2.0)
  5.  as it pokes the fake <ret> code into the ROM BIOS keyboard buffer area.
  6.  
  7.  Idea from program CTRLPRTS.COM by Daniel M. O'Brien - 12 August 1983
  8.  
  9.          Changes by Michael L. McLellan - 3 February 1985
  10.  
  11.  Example: to load the dos 2.0 print spooler print.com in a .BAT file
  12.     without operator intervention:
  13.  
  14.  " .BAT file up to cr.com"
  15.   cr            'put <ret> in keyboard input buffer
  16.   print /p      'Load print spooler with default device of [PRN:]
  17.  "Rest of .BAT file"
  18.  
  19.  NOTE 1: !!!!!!
  20.  One problem, however, is that any keystrokes stored in the keyboard
  21.  buffer are discarded.
  22.  
  23.  NOTE 2: Any other key can be put in the buffer along with a CR by the 
  24.       following: replace the 13 with 256*key+13 where key is the
  25.       ASCII value of the key wanted( 0 <= key <= 255 ).  The extended 
  26.       ASCII key values can be put in the buffer, but without a CR as in
  27.       this program.
  28.  
  29. NOTE 3: This is assembled and linked with the Microsoft Macro Assembler 
  30.      and linker and changed to a .COM file by exe2bin.
  31.